package com.yyfax.common.tools;

/**
 * Created by HenryZhang on 2017/6/6.<br>
 * Copyright © 2017 www.yylending.com. All Rights Reserved.<br><br>
 */
public class RobolectricUtils {
	/**
	 * https://stackoverflow.com/questions/31868325/robolectric-inflateexception-when-using-v7-support-library-alertdialog
	 */
	public static boolean isARobolectricUnitTest() {
		try {
			Class.forName("org.robolectric.Robolectric");
			return true;
		} catch (ClassNotFoundException e) {
			return false;
		}
	}
}
